package com.cjt.chat.pojo;

/**
 * @author cjt
 * @since 2024/3/15
 */
public class User {
    //用户id
    private Integer userid;
    //用户名
    private String username;
    //昵称
    private String petName;
    //用户头像url
    private String headImage;
    //密码
    private String password;
    //查询的人是否是该用户的好友
    private Boolean isFriend;

    public Integer getUserid() {
        return userid;
    }

    public User setUserid(Integer userid) {
        this.userid = userid;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPetName() {
        return petName;
    }

    public void setPetName(String petName) {
        this.petName = petName;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public Boolean getIsFriend() {
        return isFriend;
    }

    public void setIsFriend(Boolean friend) {
        isFriend = friend;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", petName='" + petName + '\'' +
                ", headImage='" + headImage + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
